package com.isoft.data.dao;

import com.isoft.data.xml.Cane;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CaneDao {
    @Insert("insert into CANE(SEQN,DDTM,FFID,FIDE,FATT,ABST,IAST,FLID,ABRS,IARS,MABS,MIAS,MABR,MIAR)" +
            "values(#{cane.meta.seqn},#{cane.meta.ddtm},#{cane.dflt.ffid},#{cane.dflt.fide},#{cane.dflt.fatt}" +
            ",#{cane.dflt.abst},#{cane.dflt.iast},#{cane.dflt.flid},#{cane.dflt.abrs},#{cane.dflt.iars}" +
            ",#{cane.dflt.mabs},#{cane.dflt.mias},#{cane.dflt.mabr},#{cane.dflt.miar})")
    void addCane(@Param("cane") Cane cane);
}
